package com.qk.common.exception;
import com.qk.common.enums.Code;

/**
 * @author: Enid
 * @date: 2025/10/10 10:38
 * @description:
 */

public class CommonException extends BaseException {
    public CommonException(Code code) {
        super(code.getMessage());
    }

    /**
     * 抛出通用异常
     * @param code 枚举
     */
    public static void throwCommonException(Code code) {
        throw new CommonException(code);
    }
}
